///////////////////////////////////////////////////////////
//  CPreviewDetailView.h
//  Implementation of the Class CPreviewDetailView
//  Created on:      21-Sep-2013 9:42:53 AM
//  Original author: Jakkaphan Aiemcharoenjit
///////////////////////////////////////////////////////////

#if !defined(EA_65F8EE5C_DB9B_42ec_8281_085EED5AB609__INCLUDED_)
#define EA_65F8EE5C_DB9B_42ec_8281_085EED5AB609__INCLUDED_

#include "IViewCtrl.h"
#include "IPage.h"
#include "IWindowDirector.h"

using namespace Data;

namespace UI
{
class CPreviewDetailView : public IViewCtrl
{

public:
  CPreviewDetailView(IWindowDirector* director);	
	virtual ~CPreviewDetailView();

	virtual IViewCtrl::ViewType GetType() const;
	virtual void Initialize();
	virtual void Refresh();
	virtual void ShowView(bool show = true);
	void OnClickedBack();
	void SetPage(IPage* page);
  void SetTiltleView(const std::string& text);

private:
  bool OnClickedNavigationBar(CNavigationBar *naviBar, int button);

private:
	IViewCtrl::ViewType   m_type;
	IWindowDirector*      m_parrentWnd;
	IPage*                m_page;
  CNavigationBarPtr     m_navigationBar;

};
}
#endif // !defined(EA_65F8EE5C_DB9B_42ec_8281_085EED5AB609__INCLUDED_)
